import HttpRequest from '@/libs/axios'
import config from '@/config'
const axios = new HttpRequest(config.baseUrlSchool)

// 获取老师学校、年级、班级信息
export const selectTeacherByCardNo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolStudentService/selectSchoolMessageByCardNo',
    data: data,
    loading: false,
    type: 'post',
  })
}

// 传 idenno 身份证获取最近核酸时间
export const getHSDate = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolParentMemberService/selecthsByCardNo',
    data: data,
    loading: false,
    type: 'post',
  })
}

// 字典
export const getDictList = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/publicService/getDictList',
    data: data,
    loading: true,
    type: 'post',
  })
}
// 文件上传获取签名
export const getFileSign = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/getHadoopService/getSign',
    data: data,
    loading: true,
    type: 'post',
  })
}
// 文件上传base64
export const uploadFile = (data) => {
  return axios.request({
    url: config.baseUrlUpload + '/api/ac/file/fileCommonService/upLoadFiles',
    data: data,
    loading: true,
    type: 'post',
  })
}
// // 获取核酸检测信息
// export const getCountryHs = (data) => {
//   return axios.request({
//     url: 'http://registerdalian.lngov.top/api/ac/registerdalian/countryHsService/getCountryHs',
//     data: data,
//     loading: true,
//     type: 'post'
//   })
// }
// // 获取核酸检测信息
// export const getNucleicAcidInfo = (data) => {
//   return axios.request({
//     url: 'http://www.dlfypt.dl.cn/api/ac/centerdalianyqdata/centerNucleicAcidService/getNucleicAcidInfo',
//     data: data,
//     loading: true,
//     type: 'post',
//   })
// }
// 获取核酸检测信息
export const gethsjcsj = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlHealthReportService/gethsjcsj',
    data: data,
    loading: true,
    type: 'post',
  })
}
// 获取疫苗信息
export const getYmjzqk = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlHealthReportService/getYmjzqk',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 大连归属区街道社区
export const getDLAreaList = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/publicService/getDLAreaList',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 学校下拉
export const getSchoolList = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/publicService/getSchoolNameCodeList',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 年级下拉
export const getGradeList = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/publicService/getGradeNameCodeList',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 班级下拉
export const getClassList = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/publicService/getClassNameCodeList',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 查询教师信息
export const getTeacherInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlschoolTeacherService/getTeacherInfo',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 查询教师信息(id)
export const getTeacherInfoById = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlschoolTeacherService/selectSchoolTeacherInfo',
    data: data,
    loading: true,
    type: 'post',
  })
}

// // 查询班主任信息
// export const getbzrList = (data) => {
//   return axios.request({
//     url: '/api/ac/dalianyqschool/dlschoolTeacherService/getbzrList',
//     data: data,
//     loading: true,
//     type: 'post',
//   })
// }

// 查询班主任信息
export const getbzrList = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlschoolTeacherService/selectDeadmasterDaysList',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 查询是否班主任
export const getIsDeadmaster = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlschoolTeacherService/getIsDeadmaster',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 查询班主任审核列表
export const getExamineList = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolStudentService/selectStudentApprovalList',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 班主任审核
export const updateExamine = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolStudentService/updateStudentApproval',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 班主任审核详情
export const getExamineDetail = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolStudentService/getStudentInfoById',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 查询职工信息
export const getWorkerInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlschoolWorksService/getWorksInfo',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 查询职工信息(id)
export const getWorkerInfoById = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlschoolWorksService/selectSchoolWorksInfo',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 查询家庭成员信息(id)
export const getFamilyInfoById = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolParentMemberService/info',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 查询家庭注册信息(id)
export const getParentsInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolParentsService/getParentsInfo',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 查询家庭成员信息
export const getFamilyInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolParentMemberService/selectMemberInfo',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 保存家庭成员信息
export const saveFamilyInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolParentMemberService/insert',
    data: data,
    loading: false,
    type: 'post',
  })
}

// 删除家庭成员信息
export const delFamilyInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolParentMemberService/updateDel',
    data: data,
    loading: false,
    type: 'post',
  })
}

// 查询家庭成员列表
export const getFamilyList = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolParentMemberService/list',
    data: data,
    loading: false,
    type: 'post',
  })
}

// 查询家长信息
export const getParentInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolParentsService/getParentInfo',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 保存家长信息
export const saveParentCohabitation = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolParentsService/saveParentCohabitation',
    data: data,
    loading: false,
    type: 'post',
  })
}

// 查询学生列表
export const getStudentList = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolParentsService/studentList',
    data: data,
    loading: false,
    type: 'post',
  })
}

// 查询学生信息
export const getStudentInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolParentsService/getStudentInfo',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 查询学生信息（id）
export const getStudentInfoById = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolParentsService/getStudentInfoById',
    data: data,
    loading: true,
    type: 'post',
  })
}

// 绑定家长的学生
export const saveParentsStudent = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolParentsService/saveParentsStudent',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 删除家长的学生
export const delParentsStudent = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolParentsService/updateParentsStudentDel',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 共同居住人列表
export const getResidentList = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolCohabitationService/list',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 共同居住人列表（不分页）
export const getResidentAllList = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolCohabitationService/getlist',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 查询共同居住人信息
export const getResidentInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolCohabitationService/info',
    data: data,
    loading: true,
    type: 'post',
  })
}
// 教师注册
export const saveTeacher = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolParentsService/saveTeacher',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 职工注册
export const registerWorkers = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlschoolWorksService/insertregisterWorkers',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 绑定学生的共同居住人
export const saveStudentResident = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolCohabitationService/insert',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 保存共同居住人信息
export const saveResidentInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolCohabitationService/insertCohabitation',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 每日健康上报
export const saveHealthInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlHealthReportService/create',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 获取每日健康上报详情
export const getHealthInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlHealthReportService/getHealthInfo',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 查询外来人员是否注册
export const getOutsiderInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolVisitService/selectInfoMap',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 外来人员注册
export const insertVisitPeople = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolVisitService/insertVisitPeople',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 外来人员申请、健康填报
export const insertHealthReport = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolVisitService/insertHealthReport',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 外来人员申请记录
export const getOutsiderList = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolVisitService/selectWlvisitlist',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 外来人员申请记录撤回
export const updateWithdraw = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolVisitService/updateWithdraw',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 外来人员申请记录详情
export const outsiderInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolVisitService/info',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 外来人员健康信息
export const outsiderHealthInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolVisitService/getHealthInfoMap',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 外来人员确认来访
export const updateConfirmVisit = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolVisitService/updateConfirmVisit',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 离校申请记录
export const getLeaveRecord = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolLeaveService/selectLeaveRecord',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 离校人员信息
export const getExitInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolLeaveService/info',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 离校人员健康信息
export const getExitHealthInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolLeaveService/getLeaveHealthInfo',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 离校人员健康填报
export const insertExitHealthInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolLeaveService/insertPerfectInformation',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 离校人员申请离校
export const applyLeave = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolLeaveService/updateApplyLeaveSchool',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 离校人员确认离校
export const updateConfirmLeave = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolLeaveService/updateConfirmVisit',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 返校申请记录
export const getReturnRecord = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolReturnService/selectReturnRecord',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 返校人员信息
export const getReturnInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolReturnService/info',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 返校人员健康信息
export const getReturnHealthInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolReturnService/getReturnHealthInfo',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 返校人员健康填报
export const insertReturnHealthInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolReturnService/insertPerfectInformation',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 返校人员申请返校
export const applyReturn = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolReturnService/updateApplyReturnSchool',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 返校人员确认返校
export const updateConfirmReturn = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolReturnService/updateConfirmVisit',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 外来考试申请记录
export const getExamRecord = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolExamService/selectExamRecordList',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 外来考试人员信息
export const getExamInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolExamService/info',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 外来考试人员健康信息
export const getExamHealthInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolExamService/getHeathInfo',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 外来考试人员健康填报
export const insertExamHealthInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolExamService/insertExamHeathReportInfo',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 外来考试人员信息维护
export const updateExamInfo = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolExamService/updateExamInfo',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 外来考试人员确认参考
export const updateConfirmExam = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolExamService/updateIsExam',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 获取学校动态填报信息
export const getFillingList = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlschoolService/getFillingList',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 获取学校发布通知
export const selectSchoolMessagelist = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlschoolMessageService/selectSchoolMessageNoPagelist',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 获取学校部门
export const selectTeacherResearchList = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/publicService/selectTeacherResearchList',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 获取咨询页面列表
export const getConsultList = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolFeedback/selectPage',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 提交咨询
export const addInformation = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolFeedback/insertFeedback',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 获取咨询回复记录
export const getreply = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolFeedback/FeedbackInfoPage',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 追问
export const addquestion = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolFeedback/insertFeedbackInfo',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 上传图片
export const addimage = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolFeedback/FeedbackInfoImg',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 获取学生填报记录表
export const selectDlRiskCheckByCard = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolParentMemberService/selectDlRiskCheckByCard',
    data: data,
    loading: false,
    type: 'post',
  })
}
// 解绑家庭关系
export const reliefFamily = (data) => {
  return axios.request({
    url: '/api/ac/dalianyqschool/dlSchoolhouseholdService/reliefFamily',
    data: data,
    loading: false,
    type: 'post',
  })
}